package com.wolffy.flink.source;


import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

public class FileSourceLegacyDemo {
    public static void main(String[] args) throws Exception {

        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

        DataStreamSource<String> readTextFileDS = env.readTextFile("input/words.txt");
        readTextFileDS.print();

        env.execute();

    }
}
